package slz_application.bank;

import cash_access.OverdraftException;


/**
 * Klasse fuer ein Konto
 */
public class Account extends cash_access.Account {
	/**
	 * @uml.property  name="iD"
	 */
	private String ID; // Konto-ID
	/**
	 * @uml.property  name="balance"
	 */
	private double balance;  // Kontostand
	
	public Account(String id) {
		// Initialisieren
		ID = id;
		balance = 0.0;		
	}
	
	/**
	 * Liefert die ID dieses Kontos. (Wird fuer die GUI benutzt.)
	 * @return  Konto-ID
	 * @uml.property  name="iD"
	 */
	protected String getID() {
		return ID;
	}

	@Override
	public void deposit(double amount) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void withdraw(double amount) throws OverdraftException {
		// TODO Auto-generated method stub
		
	}

	/**
	 * @return
	 * @uml.property  name="balance"
	 */
	@Override
	public double getBalance() {
		// TODO Auto-generated method stub
		return 0;
	}
	
	
	
	/*------------------------------------------
	 * TODO Methoden des Kontos implementieren.
	 * -----------------------------------------
	 */
}
